/*
package com.xuecheng.content.config;

import org.springframework.amqp.core.Binding;
import org.springframework.amqp.core.BindingBuilder;
import org.springframework.amqp.core.Queue;
import org.springframework.amqp.core.TopicExchange;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class MQConfiguration {

    */
/**
     * 创建队列
     *
     * @return
     *//*

    @Bean
    public Queue contentQueue() {
        return new Queue("content.queue");
    }

    @Bean
    public Queue contentQueue2() {
        return new Queue("content.queue2");
    }

    */
/**
     * 创建交换机
     *
     * @return
     *//*

    @Bean
    public TopicExchange contentExchange() {
        return new TopicExchange("content-exchange");
    }

    */
/**
     * 完成绑定
     *
     * @param contentQueue
     * @param contentExchange
     * @return
     *//*

    @Bean
    public Binding bindingContentQueue(Queue contentQueue, TopicExchange contentExchange) {
        return BindingBuilder.bind(contentQueue).to(contentExchange).with("course.pub");
    }

    @Bean
    public Binding unbindingContentQueue(Queue contentQueue2, TopicExchange contentExchange) {
        return BindingBuilder.bind(contentQueue2).to(contentExchange).with("course.unpub");
    }
}*/
